package com.ruoyi.eims.purchase.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 采购订单明细对象 t_purchase_order_details
 * 
 * @author hp
 * @date 2023-02-04
 */
public class PurchaseOrderDetails extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 采购订单 */
    @Excel(name = "采购订单")
    private Long orderId;

    /** 单价 */
    @Excel(name = "单价")
    private BigDecimal price;
    /**
     * 商品id
     */
    private Long goodsId;

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    /** 数量 */
    @Excel(name = "数量")
    private Integer count;

    /** 结算账户 */
    @Excel(name = "结算账户")
    private Long accountId;

    /** 订单总额 */
    @Excel(name = "订单总额")
    private BigDecimal countPrice;



    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setOrderId(Long orderId) 
    {
        this.orderId = orderId;
    }

    public Long getOrderId() 
    {
        return orderId;
    }
    public void setPrice(BigDecimal price) 
    {
        this.price = price;
    }

    public BigDecimal getPrice() 
    {
        return price;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    public void setAccountId(Long accountId)
    {
        this.accountId = accountId;
    }

    public Long getAccountId() 
    {
        return accountId;
    }
    public void setCountPrice(BigDecimal countPrice) 
    {
        this.countPrice = countPrice;
    }

    public BigDecimal getCountPrice() 
    {
        return countPrice;
    }


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("orderId", getOrderId())
            .append("price", getPrice())
            .append("count", getCount())
            .append("accountId", getAccountId())
            .append("countPrice", getCountPrice())
            .toString();
    }
}
